package com.wing.productionPlan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.productionPlan.model.entity.RequirePlan;
import com.wing.productionPlan.model.entity.RequirePlanProduct;
import com.wing.productionPlan.model.response.RequirePlanItermVO;
import com.wing.productionPlan.model.response.RequirePlanProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 产品需求明细-Dao
 *
 * @author
 */
@Mapper
public interface RequirePlanProductDao extends BaseMapper<RequirePlanProduct> {

    List<RequirePlanProduct> selectRequirePlanProductList(@Param("page") Page<RequirePlanProduct> pg, @Param("map") Map map);

    List<RequirePlanItermVO> selectRequirePlanImportRecord(@Param("map") Map map);

    RequirePlanProductVO selectRequirePlanProductDetail(Long id);

    List<RequirePlanProductVO> selProductSummaryData(@Param("map") Map map);

    Long selInnerProductDetailId(@Param("skuCode") String skuCode);


}
